package com.synergy.stockflow.production.service;

import com.synergy.stockflow.production.create.ProductionPlanDetailDTO;
import com.synergy.stockflow.production.entity.ProductionPlanDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface ProductionPlanDetailService extends IService<ProductionPlanDetail>{
    List<ProductionPlanDetailDTO> selectByPlanCode(String planCode);

    List<ProductionPlanDetail> selectByPlanId(String planId);

    ProductionPlanDetail getByPlanId(String planId);

    int updateByPlanId(@Param("actualQuantity") BigDecimal actualQuantity,
                       @Param("completedQuantity")BigDecimal completedQuantity,
                       @Param("planId")String planId);
}
